# _*_ coding : utf-8 _*_
# @Time : 2022/11/10 19:59
# @Author : TANGZZ
# @File : utils
# @Project : python_game
import pygame.image
from os import walk


def import_folder(path: str):
    surface_list = []
    for _, __, images_name in walk(path):
        for image in images_name:
            full_path = path + "/" + image
            surface = pygame.image.load(full_path).convert_alpha()
            surface_list.append(surface)

    return surface_list
